/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.yeedal.common;

/**
 *
 * @author Neo
 */
public enum MatchingType {

    WORD,
    CHARACTER,
    UNKNOWN;

    public static MatchingType getMatchingType(Language lang) {
        switch (lang) {
            case CHINESE_CHINA:
            case CHINESE_TAIWAN:
                return CHARACTER;
            case ENGLISH:
            case ENGLISH_US:
                return WORD;
            default:
                return UNKNOWN;
        }
    }
}
